Class Functions.ForMapWithDefault<K,​V>

  • All Implemented Interfaces:
    Function<K,​V>, java.io.Serializable
    Enclosing class:
    Functions

    private static class Functions.ForMapWithDefault<K,​V>
    extends java.lang.Object
    implements Function<K,​V>, java.io.Serializable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) V defaultValue  
      (package private) java.util.Map<K,​? extends V> map  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      ForMapWithDefault​(java.util.Map<K,​? extends V> map, V defaultValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V apply​(K key)  
      boolean equals​(java.lang.Object o)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • map

        final java.util.Map<K,​? extends V> map
      • defaultValue

        final V defaultValue
    • Constructor Detail

      • ForMapWithDefault

        ForMapWithDefault​(java.util.Map<K,​? extends V> map,
                          V defaultValue)
    • Method Detail

      • apply

        public V apply​(K key)
        Specified by:
        apply in interface Function<K,​V>
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface Function<K,​V>
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object